<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>标准编码类型管理</title>
    <link rel="stylesheet" href="${base}/static/res/manage/css/common.css">
    <link rel="stylesheet" href="${base}/static/res/manage/css/ec.css">
    <link rel="stylesheet" href="${base}/static/res/manage/css/list.css">
    <script type="text/javascript" src="${base}/static/res/plugin/jquery/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="${base}/static/res/plugin/validator/jquery.validate.min.js"></script>
    <script type="text/javascript" src="${base}/static/res/plugin/layer/layer.min.js"></script>
    <script type="text/javascript" src="${base}/static/res/admin/js/common.js"></script>
    <script type="text/javascript" src="${base}/static/res/admin/js/list.js"></script>
    <script type="text/javascript" src="${base}/static/res/admin/js/scrollView.js"></script>
    <script type="text/javascript">

        $(function () {

            [@flash_message /]

            //添加
            $("#addType").click(function(){
                showLWin("添加编码类型","add.jhtml","720px","400px");
            });

            //修改
            $("a[name='modifyType']").click(function(){
                showLWin("修改编码类型","edit.jhtml?id="+$(this).attr("idVal"),"720px","400px");
            });

            //编码列表
            $("a[name='clist']").click(function(){
                showLWin("标准编码管理","${base}/intfc/stdCode/list.jhtml?typeId="+$(this).attr("idVal"),"720px","520px");
            });
        });

    </script>
</head>
<body>
<div class="tab set">
    <h3>[#--<a href="javascript:;">首页</a>--]<a href="javascript:;">系统管理</a><a href="list.jhtml">> 标准编码类型管理</a></h3>
    <form id="listForm" action="list.jhtml" method="get">
        <div class="txte">
            <a id="addType" href="javascript:;" class="ared">+新建</a>
            <p class="txtp">
                <input type="text" name="codeType" id="codeType" value="${codeType}" placeholder="编码类型"
                       class="txt">
                <input type="text" name="codeTypeName" id="codeTypeName" value="${codeTypeName}" placeholder="编码类型名称" class="txt">
                <input type="submit" value="搜索" class="txt red">
            </p>
        </div>
        <div class="tablist">
            <table cellpadding="0" cellspacing="0" class="scrollTable" >
                <tr>
                    <th>类型编码</th>
                    <th>类型名称</th>
                    <th>类型描述</th>
                    <th>修改时间</th>
                    <th class="icon">操作</th>
                </tr>
            [#list page.list as stdCodeType]
                <tr>
                    <td>
                    ${stdCodeType.codeType}
                    </td>
                    <td class="center" >
                    ${stdCodeType.codeTypeName}
                    </td>
                    <td class="center">
                    ${stdCodeType.codeTypeRemark}
                    </td>
                    <td class="center">
                    ${stdCodeType.modifyDate?string("yyyy-MM-dd HH:mm")}
                    </td>
                    <td class="icon">
                        <div>
                            <a href="javascript:;" name="modifyType" idVal="${stdCodeType.id}" class="edit" title="编辑"></a>
                            <a href="javascript:;" name="clist" idVal="${stdCodeType.id}" class="list" title="编码列表"></a>
                            <a type="delOne" idName="id" idVal="${stdCodeType.id}" href="javascript:void(0)" class="delete"></a>
                        </div>
                    </td>
                </tr>
            [/#list]
            </table>
        [@pagination pageNumber = page.pageNumber totalPages = page.pages]
            [#include "/admin/include/pagination.ftl"]
        [/@pagination]
        </div>
    </form>
</div>
</body>
</html>